nums = [9,1,2,3,9]
nums = sorted(nums)

for i in range(len(nums) - 3 +1):
    print(nums[i])
print(nums)